package com.charles.video.system.controller;

import com.charles.video.common.core.responseDomain.AjaxResult;
import com.charles.video.system.mapper.VideoTypeMapper;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author Charles-H
 * 
 * 视频类型控制层
 */
@RestController
@RequestMapping("/video/type")
public class VideoTypeController {
    
    @Resource
    private VideoTypeMapper videoTypeMapper;
    
    @GetMapping("/getVideoTypeData")
    public AjaxResult getVideoTypeData() {
        return AjaxResult.success(videoTypeMapper.queryVideoTypeData());
    }
    
}
